[System.Reflection.Assembly]::LoadWithPartialName("Microsoft.ComplexEventProcessing")
$server = [Microsoft.ComplexEventProcessing.Server]::Connect("http://localhost:8090/StreamInsight")
$server | gm
$dv = $server.GetDiagnosticView("cep:/Server/EventManager")
$dv
